module.exports = function(grunt) {

    grunt.initConfig({

        pkg: grunt.file.readJSON('package.json'),


        transport : {

            sffruit : {
                options: {
                   // idleading: '',
                   paths:  [''],
                },

                files : {
                    '.build' : [
                        'static_v4/js/app/index.js',
                        'static_v4/js/mod/index_sea.js',

                        'static_v4/js/mod/adsModel.js',
                        'static_v4/js/mod/swiperAds.js',
                        'static_v4/js/mod/historyCookie.js',
                        'static_v4/js/mod/webcall_message.js',
                        'static_v4/js/mod/addcar_quick.js',

                        'static_v4/js/mod/public.js',
                        'static_v4/js/mod/baiduCount.js',

                    ]
                }
            }
        },



        concat : {
            sffruit : {

                files : {
                    'static_v4/js/minJSConcat/index.js' : [
                        '.build/static_v4/js/app/index.js',
                        '.build/static_v4/js/mod/index_sea.js',

                        '.build/static_v4/js/mod/adsModel.js',
                        '.build/static_v4/js/mod/swiperAds.js',
                        '.build/static_v4/js/mod/historyCookie.js',
                        '.build/static_v4/js/mod/webcall_message.js',
                        '.build/static_v4/js/mod/addcar_quick.js',

                        '.build/static_v4/js/mod/public.js',
                        '.build/static_v4/js/mod/baiduCount.js',


                    ]
                }
            }
        },

        uglify : {
            sffruit : {
                files : {
                    'static_v4/js/minJS/index.min.js' : [
                        'static_v4/js/minJSConcat/index.js'
                    ]
                }
            }
        },


    });

    grunt.loadNpmTasks('grunt-cmd-transport');

    grunt.loadNpmTasks('grunt-contrib-concat');

    grunt.loadNpmTasks('grunt-contrib-uglify');

   grunt.registerTask('default', ['transport','concat','uglify']);
    // grunt.registerTask('default', ['transport','concat']);


};